//
//  TypeDefine.swift
//  YuanJuBian
//
//  Created by mac on 2022/1/14.
//

import Foundation
import UIKit

/// JXPagingView 使用的 子视图中的滑动交给JXPagingView的闭包
typealias JXScrollBlock = (UIScrollView) -> ()

///空返回闭包
typealias EmptyCompleteBlock = (()->())

/// 返回一个类型的闭包
typealias ReturnValueBlock<T> = ((T)->())

/// 自定义打印
/// - Parameter log: 打印内容
func PYLog(_ log:String?,desc:String? = nil){
    
    #if DEBUG
    var text = ""
    if desc != nil{
        text = desc!
    }
    if log != nil{
        text = text + ":\(log!)"
    }
    else{
        text = text + ":null"
    }
    WindowLogDataSource.log(text)
    debugPrint("🐶\(text)")
    #endif
}
